public class RtTriangle extends Shape{
    public int a ;
    public int b ;
    public int c;

    public RtTriangle(int a, int b, int c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }

    @Override
    public void draw() {
        System.out.println("直角边 = "+ a+b + "斜边 ="+ c);
    }

    @Override
    public void calcArea() {
          area = (a*b)/2;
    }
}
